const babelCore = require('@babel/core')

const code = `
  var b = 0b11; // binary integer literal
  var o = 0o7; // octal integer literal
`
const result = babelCore.transformSync(code,{
    plugins: ["@babel/plugin-transform-instanceof"]
})

console.log(result.code);